<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>后台管理</title>
	<link rel="stylesheet" type="text/css" href="/css/admin/style.css" />
	<script type="text/javascript" src="/js/jquery-1.4.4.js"></script>
	<script type="text/javascript" src="/js/admin.js"></script>
	
</head>

<body>
	
		<#include "/admin/nav.ftl">
		
		<div id="wrapper">
			<div id="nav_trail"><a href="#">后台管理</a> 管理首页</div>
			<div id="content">
			
				<!-- 左边菜单 -->
				<#include "/admin/left_menu.ftl">
				<!-- 左边菜单 -->
				
				
				<script>
		menusel('m_user');
	</script>
	
	
				<div class="right_area">
					<div class="cbar">
			            
			              <ul>
			                <li class="cbar-tag-sel"><a href="/admin/item/index">用户列表</a></li>
			    			<li><a href="add">增加用户</a></li>
			              </ul>
			         </div><!-- cbar end -->
			         
         
            
            
			         <div class="cbox">
          
            <div class="ydbar">
      			<div class="info-title">用户列表</div>
    		</div>	
            <table align="center" width="100%" cellspacing="0" cellpadding="0" border="0" class="table_b">
              <tbody><tr class="tab-top">
                <td align="center"><strong>ID</strong></td>
                <td align="center" width="70%"><strong>用户名</strong></td>
                <td align="center" width="10%"><strong>状态</strong></td>
                <td align="center" width="10%"><strong>管理</strong></td>
              </tr>              
               
              <#if userList?exists>
				<#list userList as user>
	              <tr onMouseout="this.className=&quot;table-d-c&quot;" onMouseover="this.className=&quot;td-m&quot;" class="table-d-c">
	              	<input type="hidden" name="siteID" value="${user.id}" />
					<td align="center">${user.id}</td>	
					<td align="center">${user.name?default("")}</td>
					<td align="center"><#if user.state==0><span class="red">冻结<span><#elseif user.state==1>正常</#if></td>	 
	                <td align="center">
	                <#if user.state==0>
	                		<a href="restore?id=${user.id}">恢复</a>
	                <#elseif user.state==1>
	                	<a href="freeze?id=${user.id}">冻结</a>
	                </#if>
	                 
	                </td>
	              </tr>
			   </#list>
			</#if>
               
			     <tr>
                	<td colspan="4" align="center"><div class="include_page"><#include "/admin/page.ftl"></div></td>
				 </tr>
            </tbody></table>
            
             
             
  	
				
             
          </div><!-- cbox end -->
            
			            
			        </div><!-- right_area end -->
				</div>
				
				<div class="clear"></div>
			</div> <!-- content end-->
			<div id="footer"></div>
   		</div><!-- wrapper end-->
</body>
</html>
